<div class="first_top">
    <a ng-click="back()"><span class="backImg"><img src="images/baijiantou.png"></span></a>
    <h class="first_title">微信登录</h>
</div>
<div id='WxUser' class="WxUser" ng-show="wxUser">
    <div class="wxlogo"><img ng-src="{{wxUser.headimgurl}}" alt=""/></div>
    <div class="wxname">登录名：{{wxUser.nickname}}</div>
    <div ng-show="!check">
        <ul class="login_detail" style="">
            <li>
                <div class="register_text">手机号:</div>
                <input class="register_put0" name="userPhone" ng-model="user.phone" placeholder="请输入您的手机号">
                <button class="getcode" id="getcode" ng-click="getcode(user)">获取验证码</button>
            </li>
            <li>
                <div class="register_text">验证码:</div>
                <input class="register_put" ng-model="user.code" placeholder="请输入您的验证码">
            </li>
        </ul>
    </div>
    <button ng-click="wxRegisterThenLogin()"  ng-show="check" class="wxbutton">确认登录</button>
    <button ng-click="wxRelationUserThenLogin()"  ng-show="!check" class="wxbutton">确认绑定</button>
</div>
<div class="WxUser" ng-show="!wxUser && error">
    {{error}}
</div>
<div class="WxUser" ng-show="!wxUser && !error">
    信息获取中..
</div>
<div class="c-float-popWrap msgMode">
    <div class="pop-mask" style="opacity: 0;"></div>
    <div class="c-float-modePop">
        <div class="warnMsg">
        </div>
    </div>
</div>